package cn.edu.njuit.springbootfilmreview.mapper;

import cn.edu.njuit.springbootfilmreview.dto.AccountInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author Administrator
 * @description 针对表【account_info(登录用户表)】的数据库操作Mapper
 * @createDate 2022-05-23 19:35:25
 * @Entity cn.edu.njuit.springbootfilmreview.dto.AccountInfo
 */
@Mapper
public interface AccountInfoMapper extends BaseMapper<AccountInfo> {


    @Select("select a.* from account_info a where a.username = ${username} and a.password = ${password}")
    AccountInfo getUserByLoginAndPassword(String username, String password);
}
